# Maintainer: Thomas Bächler <thomas@archlinux.org>

pkgname=iw
pkgver=4.14
pkgrel=1
pkgdesc="nl80211 based CLI configuration utility for wireless devices"
arch=("x86_64")
url="http://wireless.kernel.org/en/users/Documentation/iw"
license=("GPL")
depends=("libnl")
makedepends=("linux-api-headers")
validpgpkeys=('C0EBC440F6DA091C884D8532E0F373F37BF9099A') # Johannes Berg
source=("https://www.kernel.org/pub/software/network/$pkgname/$pkgname-$pkgver.tar."{xz,sign})
sha256sums=('f01671c0074bfdec082a884057edba1b9efd35c89eda554638496f03b769ad89'
            'SKIP')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" SBINDIR="/usr/bin" install
}
